package vcp.models;


import vcp.common.AbstractModel;
import client.Message;
import control.SimpleClient;
import db.parking.beans.Orders;

public class CheckOutModel  extends AbstractModel{
	
	public void doCheckout(Orders bean){
		client = SimpleClient.getInstance();
		client.addPropertyChangeListener(this);
		
		Message msg = new Message(bean,"CheckOut");
		 try {
				client.sendToServer(msg);
				//Thread.sleep(1000);
				//msg = client.getReturnMsg();
		 }
		 catch (Exception ex)
		    {
			 System.out.println(ex.toString()+"Insert->CheckOut");
		    }
		//setChanged();
		//notifyObservers(msg);	
	}


}
